﻿<catel:DataWindow x:Class="Orchestra.Modules.DataGrid.Views.PlotWindow"
                  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
				  xmlns:catel="http://catel.codeplex.com">

    <!-- Resources -->
    <catel:DataWindow.Resources>
    </catel:DataWindow.Resources>

    <!-- Content -->
    <catel:StackGrid>
        <catel:StackGrid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" MinWidth="300" />
        </catel:StackGrid.ColumnDefinitions>

        <catel:StackGrid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </catel:StackGrid.RowDefinitions>

        <Label catel:StackGrid.ColumnSpan="2">
            <TextBlock TextWrapping="Wrap">
            Please select the axis to use for plotting.
            </TextBlock>
        </Label>

        <Label Content="X axis" />
        <ComboBox ItemsSource="{Binding AvailableColumns}" SelectedItem="{Binding XAxis, ValidatesOnDataErrors=True, NotifyOnValidationError=True}" />

        <Label Content="Y axis" />
        <ComboBox ItemsSource="{Binding AvailableColumns}" SelectedItem="{Binding YAxis, ValidatesOnDataErrors=True, NotifyOnValidationError=True}" />
    </catel:StackGrid>
</catel:DataWindow>
